// Fill out your copyright notice in the Description page of Project Settings.


#include "HUD/MyOverlay.h"
#include "Components/ProgressBar.h"
#include "Components/TextBlock.h"

void UMyOverlay::SetHealBarPercent(float Percent)
{
	if(HealProgressBar)
	HealProgressBar->SetPercent(Percent);
}

void UMyOverlay::SetStaminaPercent(float Percent)
{
	if (StaminaProgressBar)
		StaminaProgressBar->SetPercent(Percent);
}

void UMyOverlay::SetGold(int32 Gold)
{
	if (GlodText)
		GlodText->SetText(FText::FromString(FString::FromInt(Gold)));
}

void UMyOverlay::SetSouls(int32 Souls)
{
	if (SoulsText)
		SoulsText->SetText(FText::FromString(FString::FromInt(Souls)));
}
